<!--
 * @Author: lp
 * @Date: 2022-01-17 09:54:48
 * @LastEditTime: 2022-06-14 09:25:43
 * @LastEditors: lp 654528967@qq.com
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: \nien-vue3-admin\src\views\redirect.vue
-->
<template>
  <div></div>
</template>
<script lang="ts" setup>
import { useRoute, useRouter } from 'vue-router'

const route = useRoute()
const router = useRouter()
let path = ''
if (Array.isArray(route.params.path)) {
  path = `/${ route.params.path.join('/') }`
} else {
  path = route.params.path
}
const query = route.query
router.replace({ path, query })
</script>
